package cn.tx.model;

import java.util.Date;

public class Emp {

    private int empId;

    private  String ename;

    private int gender;

    public Emp(int empId, String ename, int gender, Date hiredate) {
        this.empId = empId;
        this.ename = ename;
        this.gender = gender;
        this.hiredate = hiredate;
    }

    public int getEmpId() {
        return empId;
    }

    public void setEmpId(int empId) {
        this.empId = empId;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    private Date hiredate;

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", ename='" + ename + '\'' +
                ", gender=" + gender +
                ", hiredate=" + hiredate +
                '}';
    }
}
